﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

using Whoever.Framework.Base;
using Whoever.Framework.Attributes;
using Comswing.Business.Entities.Enumerables;

namespace Comswing.Business.Entities
{
    public class Swing : BusinessEntity
    {
        public int Id { get; set; }
        public bool Active { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime FinishDate { get; set; }
        public int SwingDivideNumber { get; set; }
        public double SwingUnitCash { get; set; }

        [NotMapped]
        public SwingTimeLapse TimeLapse { get; set; }

        public virtual ICollection<UserSwing> UserSwings { get; set; }
        public virtual ICollection<OrganizationSwing> OrganizationSwings { get; set; }
    }
}
